import React from "react";
import ReactDOM from "react-dom/client";
import {
    BrowserRouter as Router
} from "react-router-dom";
import App from "@/App";
// 1- 指定挂载的位置
const root = ReactDOM.createRoot(document.querySelector("#root") as Element);

// 2- 将App呈现到界面中
root.render((
    <Router>
        <App/>
    </Router>
));
